<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>使用消息表达式</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            margin: 0;
            padding: 20px;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        h2 {
            text-align: center;
            color: #333;
        }

        .message {
            margin-top: 20px;
            color: #666;
        }
    </style>
</head>
<body>
<h2>使用消息表达式</h2>
<div class="container">

    <div class="message">
        <p th:text="#{msg.welcome}"></p>
        <p th:text="#{msg.error}"></p>
    </div>
</div>
</body>
</html>
